package gevis.cm.ap.tabledto.bc.nv;

import java.io.Serializable;

import gevis.cm.ap.annotation.TablePrimaryKey;
import gevis.cm.ap.tabledto.TableBaseDto;

public class INFO_FUNDDto implements TableBaseDto, Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@TablePrimaryKey
	private String IMC;
	@TablePrimaryKey
	private String FUND;
	@TablePrimaryKey
	private String FROM_YMD;
	
	
	private String FUND_KNM;
	private String FUND_ENM;
	private String FUND_KSNM;
	private String FUND_ESNM;
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((FROM_YMD == null) ? 0 : FROM_YMD.hashCode());
		result = prime * result + ((FUND == null) ? 0 : FUND.hashCode());
		result = prime * result + ((IMC == null) ? 0 : IMC.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		INFO_FUNDDto other = (INFO_FUNDDto) obj;
		if (FROM_YMD == null) {
			if (other.FROM_YMD != null)
				return false;
		} else if (!FROM_YMD.equals(other.FROM_YMD))
			return false;
		if (FUND == null) {
			if (other.FUND != null)
				return false;
		} else if (!FUND.equals(other.FUND))
			return false;
		if (IMC == null) {
			if (other.IMC != null)
				return false;
		} else if (!IMC.equals(other.IMC))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "INFO_FUNDDto [IMC=" + IMC + ", FUND=" + FUND + ", FROM_YMD="
				+ FROM_YMD + ", FUND_KNM=" + FUND_KNM + ", FUND_ENM="
				+ FUND_ENM + ", FUND_KSNM=" + FUND_KSNM + ", FUND_ESNM="
				+ FUND_ESNM + "]";
	}
}
